<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>datalist元素</title>
</head>
<body>
    <form action="" method="post">
        <label for="browser">请选择你要使用的浏览器：</label>
        <input list="browsers" id="browser" name="browser" placeholder="查找浏览器......">
        <datalist id="browsers">
            <option value="谷歌"></option>
            <option value="火狐"></option>
            <option value="Safari"></option>
            <option value="Opera"></option>
            <option value="Edge"></option>
        </datalist>
    </form>
</body>
</html>